home *** CD-ROM | disk | FTP | other *** search
- public class Sprite {
- protected int frame;
- protected int positionX;
- protected int positionY;
- protected int width;
- protected int height;
- protected int velocityX;
- protected int velocityY;
- protected int boundsX;
- protected int boundsY;
- protected int boundsWidth;
- protected int boundsHeight;
-
- public Sprite(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10) {
- this.setPosition(var1, var2);
- this.width = var5;
- this.height = var6;
- this.setVelocity(var3, var4);
- this.frame = 0;
- this.boundsX = var7;
- this.boundsY = var8;
- this.boundsWidth = var9;
- this.boundsHeight = var10;
- }
-
- public int getHeight() {
- return this.height;
- }
-
- public int getPositionX() {
- return this.positionX;
- }
-
- public int getPositionY() {
- return this.positionY;
- }
-
- public int getVelocityX() {
- return this.velocityX;
- }
-
- public int getVelocityY() {
- return this.velocityY;
- }
-
- public int getWidth() {
- return this.width;
- }
-
- public void setPosition(int var1, int var2) {
- this.positionX = var1;
- this.positionY = var2;
- }
-
- public void setVelocity(int var1, int var2) {
- this.velocityX = var1;
- this.velocityY = var2;
- }
- }
-